package com.aismy.admin.service;

import com.aismy.admin.entity.ArticleComment;

import com.aismy.admin.vo.CommentVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;


public interface ArticleCommentService extends IService<ArticleComment> {
    /**
     * 发表评论
     */
    void addComment(Long articleId, Long userId, String content, Long parentId);
    
    /**
     * 删除评论
     */
    void deleteComment(Long commentId, Long userId);
    
    /**
     * 获取文章评论列表
     */
    Page<CommentVO> getArticleComments(Long articleId, Integer page, Integer size);
    
    /**
     * 获取评论回复列表
     */
    Page<CommentVO> getCommentReplies(Long commentId, Integer page, Integer size);
} 